package com.guqj.pattern.singleton;

/**
 * 内部类
 * @author guqj
 * @date   2017年3月9日
 */
public class SingletonInnerClass {

	private SingletonInnerClass() {
	}

	private static class InnerClass {
		private static SingletonInnerClass singlenton = new SingletonInnerClass();
	}

	public static SingletonInnerClass getInstance() {
		return InnerClass.singlenton;
	}
}
